package com.wl.dzt.basic.entity;

import com.wl.dzt.sys.annotation.Column;
import com.wl.dzt.sys.annotation.Table;
import com.wl.dzt.sys.annotation.Transient;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


@ApiModel("BasicModel")
@Table("basic_model")
public class BasicModel implements Serializable {

    @ApiModelProperty(value = "模块名称", name = "modelName")
    @Column(value = "model_name", text = "模块名称", maxLength = 50)
    private String modelName;


    @ApiModelProperty(value = "上级模块", name = "modelParentId")
    @Column(value = "model_parent_id", text = "上级模块", maxLength = 32)
    private BasicModel modelParentId;


    @ApiModelProperty(value = "模块脚本", name = "modelJs")
    @Column(value = "model_js", text = "模块脚本", maxLength = 177)
    private String modelJs;


    @ApiModelProperty(value = "模块类型", name = "modelType")
    @Column(value = "model_type", text = "模块类型", maxLength = 5)
    private String modelType;


    @ApiModelProperty(value = "模块入口", name = "modelMain")
    @Column(value = "model_main", text = "模块入口", maxLength = 177)
    private String modelMain;


    @ApiModelProperty(value = "编号", name = "id")
    @Column(value = "id", text = "编号", maxLength = 32)
    private String id;


    @ApiModelProperty(value = "模块图票", name = "modelIcon")
    @Column(value = "model_icon", text = "模块图票", maxLength = 50)
    private String modelIcon;


    @ApiModelProperty(value = "模块排序", name = "modelSort")
    @Column(value = "model_sort", text = "模块排序", maxLength = 5)
    private Integer modelSort;

    @Transient
    private String iconCls  = "notIcon";

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public BasicModel getModelParentId() {
        return modelParentId;
    }

    public void setModelParentId(BasicModel modelParentId) {
        this.modelParentId = modelParentId;
    }

    public String getModelJs() {
        return modelJs;
    }

    public void setModelJs(String modelJs) {
        this.modelJs = modelJs;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getModelMain() {
        return modelMain;
    }

    public void setModelMain(String modelMain) {
        this.modelMain = modelMain;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getModelIcon() {
        return modelIcon;
    }

    public void setModelIcon(String modelIcon) {
        this.modelIcon = modelIcon;
    }

    public Integer getModelSort() {
        return modelSort;
    }

    public void setModelSort(Integer modelSort) {
        this.modelSort = modelSort;
    }
}
